package it.uniroma2.art.coda.structures.depends;

/**
 * This class is used when we have a dependency with two parameters
 * 
 * @author Andrea Turbati
 * 
 */
public class DependencyObjTwoParam extends DependencyObject {

	String secondValue;

	/**
	 * @param ruleId
	 *            the projection rule id that it is pointed by this dependency
	 * @param dependsOnType
	 *            the dependency type
	 * @param secondValue
	 *            the second parameter associated to this dependency
	 * @param isExtDepADependsOn
	 *            true if this dependency is a dependsOn, false otherwise
	 */
	public DependencyObjTwoParam(String ruleId, String dependsOnType, String secondValue, boolean isExtDepADependsOn) {
		super(ruleId, dependsOnType, isExtDepADependsOn);
		this.secondValue = secondValue;
	}

	/**
	 * Get the second parameter for this dependency
	 * 
	 * @return the second parameter for this dependency
	 */
	public String getSecondValue() {
		return secondValue;
	}

}
